import 'dart:async';

import 'package:flutter/services.dart';

class MapNaviPlugin {
  static const MethodChannel _channel =
      const MethodChannel('com.kayoxu.map_navi_plugin');

  static Future<String?> get platformVersion async {
    final String? version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future? gotoNavi(
      {required double lat, required double lng, String? address}) {
    return _channel.invokeMethod('gotoNavi', {
      'data': {'lat': lat, 'lng': lng, 'address': address ?? '$lat,$lng'}
    });
  }
}
